<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>

<html>
	<head>
		<title>修改保护资源</title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="${path}/style/styles.css">
		<link rel="stylesheet" type="text/css" href="${path}/style/main.css">
	</head>

	<body>
		<div class="context_head">
			后台管理 &gt;&gt;&nbsp;权限管理&gt;&gt;&nbsp;添加保护资源 
		</div>
		<div class="context_text">
			<form action="${path}/privilegeRes!updateResource.action" method="post">
			<table class="tables" width="50%">
				<tr>
					<th colspan="2" class="th1">
						修改保护资源
					</th>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源类型：
					</td>
					<td class="td3">
						<select name="resItemId">
							<c:forEach var="resItem" items="${resItem}">
								<option value="${resItem.id}" ${queryByIdResource.resItem.id eq resItem.id?"selected":""} >${resItem.sysItemName}-${resItem.id}</option>							
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源名称：
					</td>
					<td class="td3">
						<input type="text" class="input1" name="res.resName" value="${queryByIdResource.resName}"/>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源地址：
					</td>
					<td class="td3">
						<input type="text" class="input1" name="res.resUrl" value="${queryByIdResource.resUrl}"/>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源类型：
					</td>
					<td class="td3">
						<select name="res.resType">
							<option value="create" ${queryByIdResource.resType eq "create"?"selected":""}>添加</option>
							<option value="view" ${queryByIdResource.resType eq "view"?"selected":""}>查询</option>
							<option value="update" ${queryByIdResource.resType eq "update"?"selected":""}>修改</option>
							<option value="delete" ${queryByIdResource.resType eq "delete"?"selected":""}>删除</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源优先级：
					</td>
					<td class="td3">
						<input type="text" name="res.resPriorty" value="${queryByIdResource.resPriorty}" size="5" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td class="td3" align=right>
						资源描述：
					</td>
					<td class="td3">
						<input type="text" class="input1" name="res.resDesc" value="${queryByIdResource.resDesc}"/>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="hidden" name="res.resId" value="${queryByIdResource.resId}"/>
						<input type="submit" value="提交" />
					</td>
				</tr>
			</table>
		</form> 
		</div>
	</body>
</html>
